package kr.saeildamil.androidforstudy2.ch24;

import kr.saeildamil.androidforstudy2.R;
import android.animation.ObjectAnimator;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class ObjectAnimatorTest extends Activity {
	Button mBtn;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch24_valueanimatortest);
		
		mBtn = (Button) findViewById(R.id.ch24_valueanimatortest_animbtn);
		
	}
	
	public void mOnClick(View v){
		ObjectAnimator animator = ObjectAnimator.ofInt(mBtn, "width", 150, 480);
		animator.setDuration(2000);
		animator.start();
	}
}
